package com.song.service.impl;

import com.song.service.TeacherService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;

/**
 * @Author Klys
 * @Date 2023/6/5 11:39
 * @Description
 * @Version 1.0
 */
@Service
public class TeacherServiceImpl implements TeacherService {


    @Override
    @PreAuthorize("hasAuthority('add')")  //预授权
    public String add() {
        return "添加教师成功";
    }

    @Override
    @PreAuthorize("hasAnyAuthority('update')")
    public String update() {
        return "修改教师信息成功";
    }

}
